/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nsip.transport;

import java.util.Collection;
import se.sics.tasim.aw.Message;

/**
 * Basic interface which is used between all agents to communicate
 * in a message driven way.
 * 
 * @author nico.rehwaldt
 */
public interface NsipMessageSucker {

    /**
     * Receives a message it is interested in
     * @param message
     */
    public void receive(Object message);

    /**
     * Return a number of messages this message sucker is interested in
     * @return
     */
    public Collection<Class> getMessageInterests();
}
